/*
 * 功能: 引入系统要使用的第三方组件
 * http://192.168.102.233:83/#/doc/guid/project
 */
import { ElMessage, ElMessageBox, ElLoading } from 'element-plus'
import { reactive } from 'vue'

export const MessageBox = {
  install (app) {
    
    let msgs = {
      msg: ElMessage,
      msgBox: ElMessageBox,
      confirm: ElMessageBox.confirm,
      alert: ElMessageBox.alert,
      loading: ElLoading.service
    }
    window.$ui = msgs
    reactive(window.$ui)
    
    app.config.globalProperties.$ui = msgs
  }
}